#include "Account.h"
#include <iostream>
#include <sstream>

using namespace std;

Account::Account(string user, string pass)
{
	username = user;
	password = pass;
}

Account::~Account()
{
}

void Account::add_serie(string s)
{
	series_to_follow.push_back(s);
}
void Account::remove_serie(string s)
{
	for (unsigned int i=0; i<series_to_follow.size(); i++)
	{
		if (series_to_follow[i] == s)
		{
			series_to_follow.erase(series_to_follow.begin() + i);
			break;
		}
	}
}
void Account::add_genre(string g)
{
	favorite_genres.push_back(g);
}
void Account::remove_all()
{
	favorite_genres.clear();
}

string Account::get_username()const
{
	return username;
}

string Account::get_password()const
{
	return password;
}
vector<string> Account::get_favorite_genres()const
{
	return favorite_genres;
}
vector<string> Account::get_series_to_follow()const
{
	return series_to_follow;
}
void Account::set_password(string pass)
{
	password = pass;
}
